package net.hn.hnms.biz.training.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import net.hn.hnms.biz.training.service.IStatisticService;
import net.hn.hnms.biz.training.vo.StatisticVO;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.common.satoken.config.AutoSetMineCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(value = "统计相关", tags = {"统计相关"})
@RestController
@RequestMapping("/statistic")
public class StatisticController {

    @Autowired
    private IStatisticService statisticService;

    @ApiOperation("经营概览-培训考评统计")
    @RequestMapping("/byMonth")
    @AutoSetMineCode
    public R<List<StatisticVO>> monthStatistic(@ApiParam(value = "煤矿编码") String mineCode){

        return R.ok(statisticService.monthStatistic(mineCode));
    }

}
